﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

using Microsoft.Xna.Framework.Content;

namespace XRpgLibrary.ExtensionMethods
{
    public static class ContentManagerExtension
    {
        public static bool ContentExists(this ContentManager contentManager, string content)
        {
            return File.Exists(Path.Combine(contentManager.RootDirectory, content + ".xnb"));
        }

    }
}
